<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Sample Blazor app</title>
</head>
<body>
    <app>Loading...</app>
    <script src="customJsFileForTests.js"></script>
    <script src="_framework/blazor.webassembly.js" autostart="false"></script>

    <!--
        To show we can customize the boot resource loading process, the server looks for these
        flags when collecting logs, and E2E tests check the right entries were seen.
     -->
    <script>
        Blazor.start({
            loadBootResource: function (type, name, defaultUri, integrity) {
                return type === 'dotnetjs'
                    ? `${defaultUri}?customizedbootresource=true`
                    : fetch(defaultUri, { integrity: integrity, cache: 'no-cache', headers: { 'customizedbootresource': 'true' } });
            }
        });
    </script>
</body>
</html>
